package com.longy.desensitized.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.longy.desensitized.util.annotation.SensitiveDataClass;
import com.longy.desensitized.util.annotation.SensitiveDataField;

import java.io.Serializable;

import lombok.Data;

/**
 * @TableName user
 */
@Data
@TableName(value = "user_info")
@SensitiveDataClass
public class User implements Serializable {

    /**
     * id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户名
     */
    @TableField(value = "account")
    private String account;

    /**
     * 真实姓名
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 邮箱;
     */
    @TableField(value = "email")
    private String email;

    /**
     * 手机号码;
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 密码;
     */
    @SensitiveDataField
    @TableField(value = "password")
    private String password;

}